import request from '@/utils/request'

// 查询app外外链设置列表
export function listOutreach(query) {
  return request({
    url: '/system/outreach/list',
    method: 'get',
    params: query
  })
}

// 查询app外外链设置详细
export function getOutreach(id) {
  return request({
    url: '/system/outreach/' + id,
    method: 'get'
  })
}

// 新增app外外链设置
export function addOutreach(data) {
  return request({
    url: '/system/outreach',
    method: 'post',
    data: data
  })
}

// 修改app外外链设置
export function updateOutreach(data) {
  return request({
    url: '/system/outreach',
    method: 'put',
    data: data
  })
}

// 删除app外外链设置
export function delOutreach(id) {
  return request({
    url: '/system/outreach/' + id,
    method: 'delete'
  })
}
